SRCS	:= $(wildcard *.cpp)

CC		= g++
INCPATH	= ./
INCPATH2 = ../../../include
#CCFLAG	= -I $(INCPATH) -I $(INCPATH2) -c -g -O3 -static
CCFLAG	= -I $(INCPATH) -I $(INCPATH2) -c -g -static

FRONT_END_OBJS = dis_decode.o resolve.o dis_groups.o syntax.o

BACK_END_OBJS = 

all: $(FRONT_END_OBJS) $(BACK_END_OBJS)
	cp *.o .. 
	echo "done!"

$(FRONT_END_OBJS):%.o:%.cpp 
	$(CC) $(CCFLAG) $? -o $@

$(BACK_END_OBJS):%.o:%.cpp
	$(CC) $(CCFLAG) $? -o $@

clean:
	rm -rf *.o
